
function IsValid(ent)
	if(ent && ent:IsValid()) then
		return true
	else
		return false
	end
end

function IsPathNode(ent)

	if not IsValid(ent) then
		return false
	end

	return ent:GetClass() == "sent_pathnode"
end

function IsActor(ent)
	return (IsValid(ent) and ent:IsNPC())
end

function IsCameraNode(ent)

	if not IsValid(ent) then
		return false
	end

	return (ent:GetClass() == "animated_camera" or ent:GetClass() == "static_camera")
end

function IsPhysiscsEntity(ent)

	if not IsValid(ent) then
		return false
	end

	return ent:GetClass() == "prop_physics"
end